//
//  UIButton+Space.h
//  Backhome
//
//  Created by vbn on 2017/3/8.
//  Copyright © 2017年 LeiXiao CQ. All rights reserved.
//

#import <UIKit/UIKit.h>

@interface UIButton (KNSpace)

@property (strong, nonatomic) UIView *unreadView;

// 左右
-(void)KNCenterButtonAndImageWithSpacing:(CGFloat)spacing;
// 上下
- (void)KNCenterImageAndTitle:(float)space;

// 是否显示红点
- (void)KNSetUnread:(BOOL)unread;

- (void)KNSetUnreadFrame:(CGRect)frame;

- (void)KNImageLeftToRight;

- (void)KNImageLeftToRight:(float)space;

@end
